package com.chanzany.facade;
//爆米花机
public class Popcorn {
    //使用单例饿汉
    private static final Popcorn instance = new Popcorn();
    public static Popcorn getInstance(){return instance;}
    public void on(){
        System.out.println("Popcorn on");
    }
    public void off(){
        System.out.println("Popcorn off");
    }
    public void pop(){
        System.out.println("Popcorn is popping");
    }

}
